import React from "react";
import { connect } from "react-redux";
import * as actions from "@/store/actions/user";

class Connect extends React.Component {
  componentDidMount() {
    console.log("user", this);
  }
  render() {
    return (
      <div>
        <h6>connect</h6>
        <h6>{this.props.name}</h6>
      </div>
    );
  }
}
const mapStateToProps = (state) => state.user;
const mapDispatchToProps = actions;

export default connect(mapStateToProps, mapDispatchToProps)(Connect);
